import request from '@/utils/request'

// 查询申请退货列表
export function listRetreat(query) {
  return request({
    url: '/orretreat/retreat/list',
    method: 'get',
    params: query
  })
}

// 查询申请退货详细
export function getRetreat(orderRetreatId) {
  return request({
    url: '/orretreat/retreat/getInfo/' + orderRetreatId,
    method: 'get'
  })
}

// 修改申请退货
export function updateRetreat(data) {
  return request({
    url: '/orretreat/retreat/edit',
    method: 'put',
    data: data
  })
}


export function getselectById(orderId) {
  return request({
    url: '/orretreat/retreat/selectById/' + orderId,
    method: 'get'
  })
}
